Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(website): update colors correctly when palette is only customized in one color mode #6448

Merged
merged 1 commit into from
Jan 23, 2022

Conversation

Josh-Cena
Copy link
Collaborator

Motivation

An edge case where the colors have been hardcoded in the DOM but the other color mode doesn't exist yet (because right before merging #5822 we removed the effect that save both color modes during init). We should always use JS to manipulate styles provided JS is available—there isn't harm in doing so.

Have you read the Contributing Guidelines on pull requests?

Yes

@Josh-Cena Josh-Cena added the pr: documentation This PR works on the website or other text documents in the repo. label Jan 23, 2022
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Jan 23, 2022
@netlify
Copy link

netlify bot commented Jan 23, 2022

✔️ [V2]

🔨 Explore the source changes: f10b487

🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/61ecf488f70af7000781c619

😎 Browse the preview: https://deploy-preview-6448--docusaurus-2.netlify.app

@github-actions
Copy link

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟢 Performance 90
🟢 Accessibility 100
🟠 Best practices 87
🟢 SEO 100
🟢 PWA 92

Lighthouse ran on https://deploy-preview-6448--docusaurus-2.netlify.app/

@Josh-Cena Josh-Cena merged commit d0b4aaf into main Jan 23, 2022
@Josh-Cena Josh-Cena deleted the jc/website-color branch January 23, 2022 06:29
@github-actions
Copy link

Size Change: +74 B (0%)

Total Size: 708 kB

Filename Size Change
website/build/assets/js/main.********.js 531 kB +74 B (0%)
ℹ️ View Unchanged
Filename Size
website/.docusaurus/globalData.json 43.5 kB
website/build/assets/css/styles.********.css 104 kB
website/build/index.html 29.8 kB

compressed-size-action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: documentation This PR works on the website or other text documents in the repo.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants